<aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src="<?php echo base_url().B_IMG;?>avatar3.png" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>Hello, <?php echo $author_info->username;?></p>

                            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                        </div>
                    </div>
                    <!-- search form -->
                    <form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="Search..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li <?php echo (str_replace('-', '_', $this -> uri -> segment(1)) == '' )? 'class="treeview"' : 'class="treeview"' ?>>
                            <a href="<?php echo base_url();?>">
                                <i class="fa fa-dashboard"></i> <span>Dashboard</span>
                            </a>
                        </li>
                       <!-- <li>
                            <a href="pages/widgets.html">
                                <i class="fa fa-th"></i> <span>Widgets</span> <small class="badge pull-right bg-green">new</small>
                            </a>
                       </li>-->
                        
                        <li <?php echo (str_replace('-', '_', $this -> uri -> segment(1)) == 'control_employers' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_jobseekers' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_employer_contact_persons' )? 'class="treeview active"' : 'class="treeview"' ?>>
                            <a href="#">
                                <i class="fa fa-table"></i> <span>Users</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url();?>control-employers"><i class="fa fa-angle-double-right"></i> Employers</a></li>
                                <li><a href="<?php echo base_url();?>control-jobseekers"><i class="fa fa-angle-double-right"></i> Jobseekers</a></li>
                                <li><a href="<?php echo base_url();?>control-employer-contact-persons"><i class="fa fa-angle-double-right"></i> Contact Persons</a></li>
                            </ul>
                        </li>
                        <li <?php echo (str_replace('-', '_', $this -> uri -> segment(1)) == 'control_job_ads' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_job_alerts' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_job_applications' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_job_messages' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_job_upload_files' )? 'class="treeview active"' : 'class="treeview"' ?>>
                            <a href="#">
                                <i class="fa fa-edit"></i> <span>Jobs</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url();?>control-job-ads"><i class="fa fa-angle-double-right"></i> Job ADS</a></li>
                                <li><a href="<?php echo base_url();?>control-job-alerts"><i class="fa fa-angle-double-right"></i> Job Alerts</a></li>
                                <li><a href="<?php echo base_url();?>control-job-applications"><i class="fa fa-angle-double-right"></i> Applications</a></li>
                                <li><a href="<?php echo base_url();?>control-job-messages"><i class="fa fa-angle-double-right"></i> messages</a></li>
                                <li><a href="<?php echo base_url();?>control-job-upload-files"><i class="fa fa-angle-double-right"></i> Upload files</a></li>
                            </ul>
                        </li>
                        
                         <li <?php echo (str_replace('-', '_', $this -> uri -> segment(1)) == 'control_settings' )? 'class="treeview active"' : 'class="treeview"' ?>>
                            <a href="#">
                                <i class="fa fa-table"></i> <span>Settings</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                            	<li><a href="<?php echo base_url();?>control-settings"><i class="fa fa-angle-double-right"></i> Configuration Options</a></li>
                            	<li><a href="<?php echo base_url();?>control-settings/companies"><i class="fa fa-angle-double-right"></i> Companies</a></li>
                                <li><a href="<?php echo base_url();?>control-settings/sign-up"><i class="fa fa-angle-double-right"></i> Sign Up</a></li>
                                <li><a href="<?php echo base_url();?>control-settings/banners"><i class="fa fa-angle-double-right"></i> Banners</a></li>
                                <li><a href="<?php echo base_url();?>control-settings/banner-areas"><i class="fa fa-angle-double-right"></i> Banner Areas</a></li>
                                <li><a href="<?php echo base_url();?>control-settings/jobseeker-files"><i class="fa fa-angle-double-right"></i> Jobseeker Files</a></li>
                                <li><a href="<?php echo base_url();?>control-settings/categories"><i class="fa fa-angle-double-right"></i> Categories</a></li>
                                <li><a href="<?php echo base_url();?>control-settings/locations"><i class="fa fa-angle-double-right"></i> Locations</a></li>
                            </ul>
                        </li>
                        <li <?php echo (str_replace('-', '_', $this -> uri -> segment(1)) == 'control_authors' || str_replace('-', '_', $this -> uri -> segment(1)) == 'control_author_groups' )? 'class="treeview active"' : 'class="treeview"' ?>>
                            <a href="#">
                                <i class="fa fa-bar-chart-o"></i>
                                <span>Security</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo base_url();?>control-authors"><i class="fa fa-angle-double-right"></i>Authors</a></li>
                                <li><a href="<?php echo base_url();?>control-author-groups"><i class="fa fa-angle-double-right"></i>Author Groups</a></li>
                            </ul>
                            
                        </li>
                        
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>